package chapter08;

import java.util.Scanner;

public class Day2 {
    public static void main(String[] args) {
        Scanner input=new Scanner(System.in);
        System.out.print("请输入一个正整数：");
        int nums = input.nextInt();

        for (int i = 2; i <= nums; i++) {
            while (nums % i == 0) {
                if (nums == i) {
                    System.out.print(i);
                } else {
                    System.out.printf("%d*", i);
                }
                nums = nums / i;
            }
        }
    }
}

